package com.java.base.exercise.designmode.adpect;

/**
 * @Author RenPu
 * @Date 2023/4/19 16:56
 * @Version 1.0
 * @Description: 适配器得测试类
 **/
public class AdpectTest {

    public static void main(String[] args) {

        Duck duck=new WhildDuckAdpect(new WhildDog());
        String gaga = duck.gaga();
        System.out.println(gaga);

        Dog dog = new WhildDogAdpect(new WhildDuck());
        String wangwang = dog.wangwang();
        System.out.println(wangwang);

    }



}
